<template>
  <div id="app">
    <el-button type="info" @click="out">退出</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    // 退出
    out() {
      window.sessionStorage.clear('token')
      this.$router.push('./login')
      // 退出成功
    }
  }
}
</script>
